# coding=utf-8

while True:
    try:
        nums = []
        n = int(input())
        for i in range(n):
            nums.append(int(input()))
        nums = list(set(nums))
        nums.sort()
        for j in nums:
            print(j)
    except (EOFError, KeyboardInterrupt):
        break
